<include file="Public:top" />        
	<style>
    	
    </style>
	</head>
  
	<body>
    
    

    

    
    <div id="body-wrapper" > <!-- Wrapper for the radial gradient background -->		

        <!--left start-->
		
        <include file="Public:left" /> 
        <!--left end-->
        
        
        <!-- End #sidebar -->			
		<div id="main-content"> <!-- Main Content Section with everything -->        
        		<div  id="header_logo">{:C("SITE_INFO.name")}</div>	 		
			
			<!-- Page Head -->
			<div style="float:left; width:380px;">
			  <h2>Users</h2></div>
            
			<div class="clear"></div> <!-- End .clear -->
            
            <if condition="$action !=''">    

                   
                <!-- Insert -->
                <div class="content-box">				
                    <div class="content-box-header">                    
                        <ul class="content-box-tabs">			
                        			
                            <li><a href="#tab1" id="menu1" class="default-tab current" style="text-transform:capitalize">Add/Edit</a></li>	      
                                                  		
                        </ul>	    
                         <span class="insert" style=" float:right; line-height:40px; font-size:14px; font-weight:bold;"><a href="{:U('index')}">List </a>&nbsp; &nbsp; </span>                        	
                      <div class="clear"></div>					
                    </div>
                    <div class="content-box-content">			
                        <div class="tab-content default-tab" id="tab1"> <!-- This is the target div. id must match the href of this div's tab -->
                          <form action="{:U('group','action=save')}" name="editForm" method="post" id="editForm" enctype="multipart/form-data" >
                          
                             <input type="hidden" name="id" value="{$id}" >
                             <p>
                              <label>Title:</label>                                
                             <input class="text-input small-input" type="text" name="title"  value="{$info.title}" />               
                            </p>  
                           
                            <p>
                            <div id="accordion">
                                <volist name="rule" id="vo">
                              
                                   <h3 style="padding: 5px 0px 5px 30px; border:1px solid #999999">{$key}</h3>
                                    <div>
                                        <foreach name="rule[$key]" item="v">
                                           <label><input name="rule[]" type="checkbox" value="{$v}"   <in name="v" value="$info.rules">checked="checked"</in> >&nbsp;<span>{$key}</span></label>
                                        </foreach>
                                    </div>
                                </volist>
                           </div>	
                           </p>
                            
                            <br>
                            <input class="button" style="text-transform:capitalize" type="button" name="BtnSave" onClick="document.editForm.submit()"  value="Save" />&nbsp;&nbsp;
                            <input class="button" type="button" onClick="window.location.href='{:U('index')}'"  value="Back" />      
                            </form>                  	
                        </div> <!-- End #tab1 --> 
                    </div>
                </div> 
                <!--End Insert -->        
			<else />
                        	<br>
             	{$msg}
             
               <div class="content-box"><!-- Start Content Box -->                  
                  <div class="content-box-header">  
                      <!--<span class="insert" style=" float:right; line-height:40px; font-size:14px; font-weight:bold;"> <a href="{:U('group','action=detail')}">+ Insert Group</a>&nbsp; &nbsp; </span>-->
                    <div class="clear"></div>                      
                  </div> <!-- End .content-box-header -->
                  
                  <div class="content-box-content">
                      <div class="tab-content default-tab" id="tab1">                       
                      <!-- This is the target div. id must match the href of this div's tab -->	
                      
                          
                          <table>
                            <thead>
                              <tr>								   
                                 <!-- <th>ID</th>-->
                                  <th width="50%">Title</th>                          	                                                                                                        
                                  <th  width="150" style="text-align:center"></th>									   						 
                              </tr>								
                            </thead> 
                            <tbody>                           
                               <volist name="listing" id="vo" mod="2" >           
                                    <if condition="$_SESSION['loginGroupId'] ELT $vo['id'] || $_SESSION['loginGroupId'] eq 1"> 
                                     <tr <eq name="mod" value="1">class="alt-row"</eq>>	
                                        <td style="font-size:14px"><a href="{:U('user','gid='.$vo['id'])}">{$vo.title}</a></td>                                           
                                        <td style="text-align:center;"> 
                                           <if condition="$_SESSION['loginGroupId'] lt $vo['id'] || $_SESSION['loginGroupId'] eq 1">   
                                            <a href="{:U('group','action=detail&id='.$vo['id'])}" title="Delete">Edit</a> &nbsp; &nbsp;  
                                          </if>                             
                                        </td>          
                                     </tr>
                                     </if>
                               </volist>
                            </tbody>
                          </table>
                          <div class="pagination">{$page}<div style=" clear:both;"></div></div>						
                      </div> <!-- End #tab1 -->	
                                       
                      
                  </div> <!-- End .content-box-content -->
                  
              </div> <!-- End .content-box -->  
             
            
            </if>
			
			<div class="clear"></div>
			
			
			<!-- Start Notifications -->
			
			

			
			<!-- End Notifications -->
			
            <div id="footer">
				<small> <!-- Remove this notice or replace it with whatever you want -->
						&#169; Copyright 2013
				</small>
			</div>
			
			
			
			<!-- End #footer -->
			
		</div> <!-- End #main-content -->
		
	</div>
	
	
	
	</body>
<!-- Download From www.exet.tk-->
</html>
<script>
$(function() {
	$( "#accordion" ).accordion();
});
</script>

